﻿@model QLBV.Models.News

@{
    ViewBag.Title = "Thêm Tin Tức";
    Layout = "~/Views/Shared/_Layout_Manager.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="HdContent">
 <div class="nav">
    <ul>
        <li class="Unselect"><a href="DSTin">Danh Sách Tin</a></li>
        <li class="Selected"><a href="Themtintuc">Thêm Menu</a></li>
    </ul>
</div>

<div class="clear"></div>
<div class="Decription">
<p>Ở đây bạn có thể thêm tin tức</p>
</div> 
</div>
<div class="MainContent">
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
   
        <div class="td">
           <label>Tiêu đề :</label>
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
         <div class="td">
          <label> Hình Ảnh :</label>
          @* @Html.EditorFor(model => model.Images)*@
           @Html.TextBoxFor(model => model.Images, new { type = "file" })
          @* <input type="file" name="anh" /> *@
        </div>
        <div class="td">
          <label> Nội Dung :</label>
          <br />
           @Html.TextAreaFor(model => model.Content, new { @id = "ckeContent" })
                    <script type="text/javascript">
                        CKEDITOR.replace("ckeContent");
                    </script>
            @Html.ValidationMessageFor(model => model.Content)
        </div>
        <div class="td">
           <label>Trạng thái:</label>
           @Html.RadioButtonFor(model => model.Status, "True")  Mở
           @Html.RadioButtonFor(model => model.Status, "False")  Đóng
          </div>
        <div class="buton">
            <input id="ok" type="submit" value="Thêm Tin" />
            <input id ="no" type ="reset" value="Làm Lại" />
        </div>
}

<div>
    @Html.ActionLink("Trở về trang trước", "DSTin")
</div>
</div>